-- GENERATED SPELL FOR [Rabid Grizzly] --


function spell0_26643(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(27049,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26643', 564, 1)
end

function spell1_26643(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(52471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26643', 684, 1)
end

function spell2_26643(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(27048,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26643', 0, 1)
end

function spell3_26643(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(27047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26643', 0, 1)
end

function spell4_26643(pUnit, Event) --@Rabies,n/a--
pUnit:FullCastSpellOnTarget(51951,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26643', 15000, 1)
end

function spell5_26643(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(53532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26643', 0, 1)
end

function Sorts_26643(pUnit, Event)
local choix_sorts_26643 = math.random(0, 5)
if choix_sorts_26643 == 0 then
pUnit:RegisterEvent('spell0_26643', 1, 1)
end
if choix_sorts_26643 == 1 then
pUnit:RegisterEvent('spell1_26643', 1, 1)
end
if choix_sorts_26643 == 2 then
pUnit:RegisterEvent('spell2_26643', 1, 1)
end
if choix_sorts_26643 == 3 then
pUnit:RegisterEvent('spell3_26643', 1, 1)
end
if choix_sorts_26643 == 4 then
pUnit:RegisterEvent('spell4_26643', 1, 1)
end
if choix_sorts_26643 == 5 then
pUnit:RegisterEvent('spell5_26643', 1, 1)
end
end

function mob26643_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26643', math.random(1500, 3000), 1)
end

function mob26643_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26643_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26643_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26643, 1, 'mob26643_Action')
RegisterUnitEvent(26643, 2, 'mob26643_Leave')
RegisterUnitEvent(26643, 3, 'mob26643_Kill')
RegisterUnitEvent(26643, 4, 'mob26643_Die')
